package extends1demo;

public class Test
{
    public static void main(String[] args) {
        Teacher t = new Teacher();
        t.setName("张三");
        t.setSex("男");
        t.setSkill("java");
        System.out.println(t.getName()+"\t"+t.getSex()+"\t"+t.getSkill());
        Consultant c = new Consultant();
        c.setName("王五");
        c.setSex("女");
        c.setCount(10);
        System.out.println(c.getName()+"\t"+c.getSex()+"\t"+c.getCount());
    }
}
